﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using fmtx.Framework.DALFactory;
using com.fmtx.IDal;
using com.fmtx.Dal;

namespace website.Areas.Website.Controllers
{
    public class AreaController : Controller
    {
        //
        // GET: /Website/Area/
        IArea _area = DataAccess<IArea>.GetObject();
        ICountry _country = DataAccess<ICountry>.GetObject();

        public ActionResult Index(int id)
        {
            var models = _area.GetAll();
            ViewBag.clist = _country.QueryByArea(id);
            return View(models);
        }

    }
}
